package cn.ctubu.edu.dp02.dao;

import cn.ctubu.edu.dp02.etity.Teacher;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TeacherRepository extends JpaRepository<Teacher, Integer> {


    List<Teacher> findByNameLike(String name);

    List<Teacher> findByNameAndPassword(String name,String password);


}
